package com.distribution.system.domain.dto;

import com.distribution.common.annotation.valid.IdCard;
import com.distribution.common.annotation.valid.MobilePhone;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author niejiandeng
 * @date 2023年07月04日 9:50
 */
@Data
public class SendCodeDTO {
    @NotBlank(message = "商品编码不能为空")
    private String productCode;
    //    @NotBlank(message = "姓名不能为空")
    private String certName;
//    @NotBlank(message = "证件号码不能为空")
//    @IdCard
    private String certNum;
    @NotBlank(message = "联系电话不能为空")
    @MobilePhone
    private String customerPhone;
//    @NotBlank(message = "归属地省区划代码不能为空")
    private String attributionProvinceCode;
//    @NotBlank(message = "归属地市区划代码不能为空")
    private String attributionCityCode;
//    @NotBlank(message = "收货地省区划代码不能为空")
    private String addressProvinceCode;
//    @NotBlank(message = "收货地市区划代码不能为空")
    private String addressCityCode;
//    @NotBlank(message = "收货地县区划代码不能为空")
    private String addressAreaCode;
//    @NotBlank(message = "收货地详细地址不能为空")
    private String addressStreet;

    private String code;
}
